/*
 * @Author: zhangweinan
 * @Date: 2023-07-17 14:27:07
 * @LastEditors: zhangweinan
 * @LastEditTime: 2023-08-03 23:24:54
 * @Description: file content
 * @FilePath: \cty-admin\src\api\user.js
 */
import request from "@/utils/request";

export function fetchLogin(params) {
  return request({
    url: "/cty/login",
    method: "post",
    params: {
      username: params.username,
      password: params.password
    }
  });
}

export function getInfo() {
  return request({
    url: "/user/getUserRoleMenu",
    method: "get",
  });
}

export function logout() {
  return request({
    url: "/vue-admin-template/user/logout",
    method: "post",
  });
}


//用户列表
export function getUserList(params) {
  return request({
    url: "/user/searchUserList",
    method: "get",
    params
  });
}

//获取资料
export function getBankCard(type) {
  return request({
    url: `/user/bankCard/get/${type}`,
    method: "get",
  });
}
//保存提现信息
export function saveBankCard(data) {
  return request({
    url: "/user/bankCard/save",
    method: "post",
    data
  });
}


